<%@ page language="java"  pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/views/common/taglib.jsp" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>我的订单</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="HandheldFriendly" content="true" />
    <meta name="viewport" content="width=320.1, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <%@ include file="/WEB-INF/views/common/resource.jsp" %>
</head>
<body>
<div class="pop_bg"></div>
<div class="pop_box np" style="padding: 10% 5%; overflow: visible;" id="chose_shopper_box">
    <p style="margin-top: 0px;">订单号<span id="set_order_no"></span></p>
    <input type="hidden" id="set_order_no_real">
    <ul class="chose_shopper_list" >
        <li>
            <label>
                <img src="${user.weChatInfo.headimgurl}" width="35" height="35" />
                <span>自己配送</span>
                <input type="radio" value="0" name="chose_shopper" />
            </label>
        </li>

        <c:forEach var="list" items="${couriers}">
            <li>
                <label>
                    <c:choose>
                        <c:when test="${list.courier_head_img_url eq null}">
                            <img src="${itx}/images/shopper_head.png" width="35" height="35" />
                        </c:when>
                        <c:otherwise>
                            <img src="${list.courier_head_img_url}" width="35" height="35" />
                        </c:otherwise>
                    </c:choose>
                    <span>${list.courier_name}</span>
                    <input type="radio" value="${list.courier_id}" name="chose_shopper" />
                </label>
            </li>
        </c:forEach>
    </ul>
    <em class="close_pop"><img src="${itx}/images/close_icon.png" width="35" /></em>
    <div class="order_logistics_btns">
        <a class="chose_shopper" onclick="setCourier()">确定</a>
    </div>
</div>

<div class="page order">
    <div class="head_box">
        <div class="type_chose_box dealer">
            <ul>
                <li id="status1" class="order_status onthis" onclick="showWaitSending()" >待配送</li>
                <li id="status2" class="order_status" onclick="showSending()" >配送中</li>
                <li id="status3" class="order_status" onclick="showFinished()" >已完成</li>
            </ul>
        </div>
    </div>
    <div class="order_list_box">
        <ul class="order_list" id="order_list">

            <%--<li>--%>
                <%--<div class="order_title">--%>
                    <%--<h1>订单号1234567895555555</h1>--%>
                    <%--<span>2017-08-23 12:12:12</span>--%>
                <%--</div>--%>
                <%--<div class="order_content">--%>
                    <%--<div class="order_img"><img src="images/demo/demo.jpg" width="60" height="40" /></div>--%>
                    <%--<div class="order_img"><img src="images/demo/demo.jpg" width="60" height="40" /></div>--%>
                    <%--<div class="order_img"><img src="images/demo/demo.jpg" width="60" height="40" /></div>--%>
                    <%--<div class="order_price">--%>
                        <%--<h1>共3件商品</h1>--%>
                        <%--<p>合计¥666</p>--%>
                        <%--<i class="iconfont icon-jiantou"></i>--%>
                    <%--</div>--%>
                <%--</div>--%>
                <%--<div class="order_logistics_btns">--%>
                    <%--<a>选择配送员</a><a>联系店家</a>--%>
                <%--</div>--%>
                <%--<div class="order_logistics_info">--%>
                    <%--<h1>配送员：陈艳</h1>--%>
                    <%--<p>手机号：13391319223</p>--%>
                    <%--<a href="tel:13391319223"><img src="images/call_phone.png" width="30" /></a>--%>
                <%--</div>--%>
                <%--<div class="order_logistics_info">--%>
                    <%--<h1>店铺名称：快客</h1>--%>
                    <%--<p>手机号：13391319223</p>--%>
                    <%--<a href="tel:13391319223"><img src="images/call_phone.png" width="30" /></a>--%>
                <%--</div>--%>
            <%--</li>--%>
        </ul>
    </div>
    <div class="clear"></div>
    <div class="footer">
        <ul>
            <li onclick="location.href='${ctx}/mep/mepIndex.do'">
                <i class="iconfont icon-icon95"></i>
                <span>主页</span>
            </li>
            <li class="onthis" onclick="location.href='${ctx}/mep/toMepOrderList.do'">
                <i class="iconfont icon-dingdan"></i>
                <span>订单</span>
            </li>
            <li onclick="location.href='${ctx}/mep/toMepCouriers.do'">
                <i class="iconfont icon-peisongfuwu"></i>
                <span>配送员</span>
            </li>
            <li onclick="location.href='${ctx}/mep/toMepCenter.do'">
                <i class="iconfont icon-wode"></i>
                <span>我的</span>
            </li>
        </ul>
    </div>
</div>

<script type="text/javascript">
    $('.type_chose_box ul li').click(function(e){
        $('.type_chose_box ul li').removeClass('onthis');
        $(this).addClass('onthis');
    });

    $('.pop_bg').click(function(e){
        $('.pop_bg').hide();
        $('.pop_box').hide();
    });

    $('#close').click(function(e){
        $('.pop_bg').hide();
        $('.pop_box').hide();
    });
    $('.close_pop').click(function(e){
        $('.pop_bg').hide();
        $('.pop_box').hide();
    })
</script>
<script src="${rtx}/js/mepOrderList.js"></script>
</body>
</html>
